//
//  AssetModel.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/6/14.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit
import ObjectMapper
class AssetModel: BaseModel, Mappable{
    var amount : String = ""  //可操作数量
    var coinCode : String = ""  //种类
    var currentAmount : Double = 0 //当前价格
    var frozenAmount : Double = 0 //冻结价格
    var enableAmount: Double = 0
    var logoUrl : String = ""
    var userId : String = ""
    var coinPrecision:Int = 8 //精度?
    required init?(map: Map){}
    override init(){
        super.init()
    }
    
    func mapping(map: Map)
    {
        amount <- map["amount"]
        coinCode <- map["coinCode"]
        currentAmount <- map["currentAmount"]
        frozenAmount <- map["frozenAmount"]
        logoUrl <- map["logoUrl"]
        userId <- map["userId"]
        enableAmount <- map["enableAmount"]
    }
}
